package com.kfm.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class KfmUser {

    public KfmUser(String name) {
        this.username = name;
    }
    /**
    * 编号
    */
    private Integer id;

    /**
    * 用户名
    */
    private String username;

    /**
    * 真实名称
    */
    private String name;

    /**
    * 密码
    */
    private String password;

    /**
    * 出生日期
    */
    private Date birth;

    /**
    * 创建时间
    */
    private LocalDateTime createTime;

    /**
    * 上一次登录的时间
    */
    private Date lastLogin;

    /**
    * 电话号码
    */
    private String phone;

    /**
    * 用户邮箱
    */
    private String email;

    public KfmUser(String username, String phone, String password, String email) {
        this.username = username;
        this.email = email;
        this.phone = phone;
        this.password = password;
    }

}